//
//  YJYPictureBrowsersTransitionParamer.h
//  BannerViewDemo
//
//  Created by BaizYi on 2018/11/5.
//  Copyright © 2018 BaizYi. All rights reserved.
//

#import <UIKit/UIKit.h>

#define SCREENWIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREENHEIGHT ([UIScreen mainScreen].bounds.size.height)

@interface YJYPictureBrowsersTransitionParamer : NSObject

/*
 firstVC : 发起查看图片浏览器的界面
 secendVC: 图片浏览器界面
 */

//**************************** firstVC、 secendVC 都需传值
//转场过度image
@property(strong,nonatomic) UIImage  *transitionImage;
//所浏览图片的下标
@property(assign,nonatomic) NSInteger transitionImgIndex;


//**************************** 只需firstVC 传值
//firstVC 图片的frame数组, 记录所有图片view在第一个界面上相对于window的frame
@property(strong,nonatomic) NSArray<NSValue *>  *firstVCImageFrames;


//**************************** 只需 secendVC 传值
//滑动手势
@property(strong,nonatomic) UIPanGestureRecognizer  *gestureRecognizer;
//当前滑动时, 对应图片的frame
@property(assign,nonatomic) CGRect currentPanGesImgFrame;


//**************************** 只读
//通过transitionImgIndex在内部计算出来在firstVC上所对应的图片frame
@property(nonatomic, assign, readonly) CGRect firstVCImgFrame;
//通过transitionImgIndex在内部计算出来在secendVC上所对应的图片frame
@property(nonatomic, assign, readonly) CGRect secendVCImgFrame;




@end
